from flask import Flask,Response,make_response

app = Flask(__name__)

#路由地址
@app.route('/')
def index():
    return Response('HEllo',status=500,headers={'name':'zhangsan'})

@app.route('/home/')
def home():
    resp = make_response('home page')
    resp.headers['name'] = 'lisi'
    resp.status = 404
    return resp

if __name__ == '__main__':
    #启动web应用服务
    app.run(debug=True)